#ifndef RED_HILODEENTRADA_H
#define RED_HILODEENTRADA_H

#include "red_thread.h"
#include "mutex.h"
#include "red_socket.h"
#include "red_protocolo.h"


using namespace red::hilos::thread;
using namespace red::protocolo;

class Cliente;

namespace red {
namespace hilos {

class HiloDeEntrada: public red::hilos::thread::Thread {

public:

	HiloDeEntrada(Socket *p_pSocket, Cliente* cliente);
	~HiloDeEntrada();

	virtual void run();
	void terminar();

private:

	Protocolo m_Protocolo;
	bool m_bTerminar;
	red::hilos::thread::Mutex m_Mutex;

};

}
}

#endif
